<?php require '../includes/security.php'; ?>
<?php require_once('../Connections/connection.php'); ?>
<?php

if (isset($_POST["Titolo"])) {
  $insertSQL = "INSERT INTO gallerie (Titolo, Descrizione) VALUES ('".$_POST["Titolo"]."','".$_POST["Descrizione"]."')";

  mysql_select_db($database_setroma, $setroma);
  $Result1 = mysql_query($insertSQL, $setroma) or die(mysql_error());


  header("Location: index.php");
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Untitled Document</title>
<link rel='stylesheet' type='text/css' href='../styles/style.css' />
</head>

<body>
<h1>Passo 1: inserimento titolo e descrizione</h1>
<form method="post" name="form1" action="<?php echo $editFormAction; ?>">
  <table >
    <tr valign="baseline">
      <td nowrap align="right">Titolo:</td>
      <td><input type="text" name="Titolo" value="" size="32"></td>
    </tr>

    <tr valign="baseline">
      <td nowrap align="right">Descrizione:</td>
      <td><input type="text" name="Descrizione" value="" size="60"></td>
    </tr>
    <tr valign="baseline">
      <td nowrap align="right">&nbsp;</td>
      <td><input type="button" value="Annulla" onclick="javascript:history.back()">   &nbsp;  <input type="submit" value="Inserisci"></td>
    </tr>
  </table>
  <input type="hidden" name="MM_insert" value="form1">
</form>
<p>&nbsp;</p>
</body>
</html>
